package plus.easydo.easyuc.web.manager;

import cn.zhxu.bs.BeanSearcher;
import cn.zhxu.bs.SearchResult;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import plus.easydo.easyuc.web.mapper.UcTenantMapper;
import org.springframework.stereotype.Component;
import plus.easydo.easyuc.web.entity.UcTenant;

import java.util.List;
import java.util.Map;

/**
* @author yuzhanfeng
* @description 针对表【uc_tenant(租户信息)】的数据库操作实现
* @createDate 2023-10-07 16:57:34
*/
@Component
@RequiredArgsConstructor
public class UcTenantManager extends ServiceImpl<UcTenantMapper, UcTenant>{

    private final BeanSearcher beanSearcher;

    /**
     * 列表信息
     *
     * @return java.util.List<plus.easydo.easyuc.web.entity.UcTenant>
     * @author laoyu
     * @date 2023-10-07
     */
    public List<UcTenant> selectList() {
        return beanSearcher.searchList(UcTenant.class);
    }

    /**
     * 分页查询
     *
     * @param queryParam queryParam
     * @return cn.zhxu.bs.SearchResult<plus.easydo.easyuc.web.entity.UcTenant>
     * @author laoyu
     * @date 2023-10-07
     */
    public SearchResult<UcTenant> selectPage(Map<String, Object> queryParam) {
        return beanSearcher.search(UcTenant.class,queryParam);
    }
}




